package com.stedu.mapper;

import com.stedu.bean.Owner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OwnerMapper {
    int insert(Owner o);
    //根据ID删除
    int delete(Integer oid);
    //根据ID修改
    int update(Owner o);
    //根据ID查询
    Owner selectByOid(Integer oid);
    List<Owner> selectByOnameAndOphone(@Param("oname") String oname, @Param("ophone") String ophone);
}
